package com.yungu.swift.system.sys.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.admin.AdminParam;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.system.sys.model.dto.SysResourceDto;
import com.yungu.swift.system.sys.model.param.AdminResourceParam;

import java.util.List;
import java.util.Map;


/**
 * SysResourceService
 **/

public interface SysResourceService extends BaseService<SysResourceDto> {

    /**
     * 所有资源
     *
     * @param adminParam 参数
     * @return List
     */
    ResponseData<List<SysResourceDto>> queryAllResource(AdminParam adminParam);

    /**
     * 查询没有权限的按钮集合
     *
     * @param paramMap
     * @return
     */
    ResponseData<List<SysResourceDto>> queryAuthHideBtn(Map<String, Object> paramMap);

    /**
     * 资源列表新增或更新
     *
     * @param resourceParam
     * @return
     */
    ResponseData<Boolean> saveOrUpdate(AdminResourceParam resourceParam);
}